import Vue from 'vue'
//引用vuex插件
import Vuex from 'vuex';
//解决移动端click 事件延迟300ms
//import FastClick from 'fastclick'
//解决低版本手机es6显示不出来问题
/*import "babel-polyfill";*/

import Es6Promise from 'es6-promise'
require('es6-promise').polyfill()

Es6Promise.polyfill()
//引用app
import App from './App'
//引用路由
import router from './router'
//引用jquery
import $ from 'jquery'
import store from "./store/store.js";
//引入mui中的css
//import './assets/render/mui/dist/css/mui.css';
//引入自己的css
import './assets/css/global.css';
//引入地址js
import MyPluginAddConfig from './assets/js/myPlugin.js';
//import global from './components/commons/global.vue'//引用文件
//Vue.prototype.global = global//挂载到Vue实例上面
//museui按需加载
import 'muse-ui/lib/styles/base.less';
import { Progress,Dialog,Grid,List } from 'muse-ui';
import 'muse-ui/lib/styles/theme.less';
//museui全量加载
// import MuseUI from 'Muse-ui';
// import 'muse-ui/dist/muse-ui.css';
//Vue.use(VueI18n.plugin, store)
//Vue.use(MuseUI);

//全量加载ElementUI
// import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
//Vue.use(ElementUI);
//ElementUI按需加载
import { Radio,RadioGroup,Button,Checkbox,CheckboxGroup,Tree,Form,FormItem,Input,InputNumber,} from 'element-ui';
Vue.use(Radio)
Vue.use(RadioGroup)
Vue.use(Checkbox)
Vue.use(CheckboxGroup)
Vue.use(Tree)

Vue.use(Dialog);
Vue.use(Button);
Vue.use(Progress);
Vue.use(Radio);
Vue.use(Checkbox);
Vue.use(Grid);
Vue.use(List);
Vue.use(Form);
Vue.use(FormItem);
Vue.use(Input);
Vue.use(InputNumber);
import  { ToastPlugin,LoadingPlugin,DatetimePlugin } from 'vux'
//使用toast
Vue.use(ToastPlugin)
Vue.use(LoadingPlugin)
Vue.use(DatetimePlugin)
//状态管理
Vue.use(Vuex)
Vue.use(MyPluginAddConfig);

//全量加载Vant
//import Vant from 'vant';
//import 'vant/lib/index.css';
//Vue.use(Vant);
// 接着你可以在代码中直接引入 Vant 组件
// 插件会自动将代码转化为方式二中的按需引入形式
// import { Tab, Tabs } from 'vant';

//注册一个全局的组件
//Vue.component('my-title', Title);

// FastClick.attach(document.body)
/* eslint-disable no-new */
window.vm = new Vue({
  el: '#app',
  store,
  router,
  components: {
    App
  },
  template: '<App/>'
})
